GtkBorder margin, border, padding;
GtkSnapshot *snapshot;
+ opacity = priv->alpha / 255.0;
+ if (opacity <= 0.0)
+ return NULL;
+
snapshot = gtk_snapshot_new ();
_gtk_widget_get_allocation (widget, &allocation);
get_box_margin (style, &margin);
get_box_border (style, &border);
get_box_padding (style, &padding);
- opacity = priv->alpha / 255.0;
if (opacity < 1.0)
gtk_snapshot_push_opacity (snapshot, opacity);
GtkSnapshot *snapshot)
{
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
- double opacity;
if (!_gtk_widget_is_drawable (widget))
return;
return;
}
- opacity = priv->alpha / 255.0;
- if (opacity <= 0.0)
- return;
-
if (priv->draw_needed)
{
GskRenderNode *render_node;